package com.enqualcomm.kids.network.socket.response;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by yinzhiqun on 2015/10/19.
 */
public class QueryDetachNoticeResult extends BasicResult {
    public List<Data> result;
    public static class Data implements Parcelable {
        public String detachId;
        /**
         * 15:00
         */
        public String beginTime;
        /**
         * 17:00
         */
        public String endTime;
        /**
         * 1开启，0未开启
         */
        public int isOpen;
        public int week;


        @Override
        public int describeContents() {
            return 0;
        }
        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(detachId);
            dest.writeString(beginTime);
            dest.writeString(endTime);
            dest.writeInt(isOpen);
            dest.writeInt(week);
        }

        public static final Creator<Data> CREATOR = new Creator<Data>() {

            @Override
            public Data createFromParcel(Parcel source) {
                Data silenceResult = new Data();
                silenceResult.detachId = source.readString();
                silenceResult.beginTime = source.readString();
                silenceResult.endTime = source.readString();
                silenceResult.isOpen = source.readInt();
                silenceResult.week = source.readInt();

                return silenceResult;
            }

            @Override
            public Data[] newArray(int size) {
                return null;
            }
        };
    }
}
